<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/dhj/asses/Month_Asses.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/dhj/asses/Month_Asses.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'MonthAssesId',
                footer: "Foots",
                cnName: '月度考勤',
                name: 'asses/Month_Asses',
                url: "/Month_Asses/",
                sortName: "MonthAssesId"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"Division":"","Person":"","Month":""});
            const searchFormOptions = ref([[{"title":"业务经理","field":"Person","type":"like"},{"title":"事业部","field":"Division","type":"like"},{"title":"月份","field":"Month","type":"month"}]]);
            const columns = ref([{field:'Division',title:'事业部',type:'string',width:220,align:'left',sort:true},
                       {field:'MonthAssesId',title:'主键',type:'int',width:80,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'Person',title:'业务经理',type:'string',sort:true,width:110,align:'left'},
                       {field:'Month',title:'月份',type:'string',width:110,align:'left'},
                       {field:'Total',title:'合计',type:'int',width:80,align:'left'},
                       {field:'AskForLeave',title:'请假',type:'int',width:80,align:'left'},
                       {field:'Travel',title:'出差',type:'int',width:80,align:'left'},
                       {field:'Attendance',title:'出勤',type:'int',width:80,align:'left'},
                       {field:'Absence',title:'未打卡',type:'int',width:80,align:'left'},
                       {field:'Rest',title:'休息',type:'int',width:80,align:'left'},
                       {field:'Day1',title:'1号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day2',title:'2号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day3',title:'3号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day4',title:'4号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day5',title:'5号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day6',title:'6号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day7',title:'7号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day8',title:'8号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day9',title:'9号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day10',title:'10号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day11',title:'11号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day12',title:'12号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day13',title:'13号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day14',title:'14号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day15',title:'15号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day16',title:'16号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day17',title:'17号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day18',title:'18号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day19',title:'19号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day20',title:'20号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day21',title:'21号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day22',title:'22号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day23',title:'23号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day24',title:'24号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day25',title:'25号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day26',title:'26号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day27',title:'27号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day28',title:'28号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day29',title:'29号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day30',title:'30号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'},
                       {field:'Day31',title:'31号',type:'string',bind:{ key:'出勤状态',data:[]},width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
